package com.ght.springboot.query;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ght.springboot.util.MyEasyJsonUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description: 子句模板
 * @author: haitao.gao
 * @create: 2019-02-12 15:31
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@AllArgsConstructor
@NoArgsConstructor
public class SentenceTemple {

    // match match_all multi_match term range exits（is NULL）
    private Map<String,Object> match;

    //精确查询
    private Map<String,Object> term;

    //多值精确查询
    private Map<String,List<Object>> terms;

    public SentenceTemple(Map<String,Object> match){
        this.match = match;
    }


}
